package com.smart_campus.sys.mapper;

import com.smart_campus.sys.common.DataGridView;
import com.smart_campus.sys.domain.Dept;

import java.util.List;

/**
 * @author Alfred
 * @date 2020/6/12 11:31
 */
public interface DeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Dept record);

    int insertSelective(Dept record);

    Dept selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Dept record);

    Integer updateByPrimaryKey(Dept dept);

    List<Dept> queryAllDept(Dept dept);

    Integer queryDeptMaxOrderNum();

    Dept getById(Integer id);

    Integer getDeptChildrenCountById(Integer id);

    Dept selectById(Integer id);

    List<Dept> getAllDept();
}